aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/(profile)/+layout.server.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-31 09:34:16 -0700
committerAdam Soltys <[email protected]>2024-10-31 09:34:16 -0700
commitd57d7b9aa8c038ca175ba58bb24839a4fa9dfb82 (patch)
treebe55931ba0f3c110c3001f56a5339cb63e78b761 /src/routes/(app)/[username]/(profile)/+layout.server.ts
parenteb4e11fd5e90284585e5c3c7bc9e86febaa29114 (diff)
downloadcoinos-ui-d57d7b9aa8c038ca175ba58bb24839a4fa9dfb82.tar.gz
coinos-ui-d57d7b9aa8c038ca175ba58bb24839a4fa9dfb82.zip
biome
Diffstat (limited to 'src/routes/(app)/[username]/(profile)/+layout.server.ts')
-rw-r--r--src/routes/(app)/[username]/(profile)/+layout.server.ts18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts
index 4592b81e..0ed3edb8 100644
--- a/src/routes/(app)/[username]/(profile)/+layout.server.ts
+++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts
@@ -1,16 +1,16 @@
import { get } from "$lib/utils";
export async function load({ depends, parent }) {
- depends("app:user");
+ depends("app:user");
- let { subject, user } = await parent();
+ const { subject, user } = await parent();
- let { follows, followers } = await get(`/${subject.pubkey}/count`);
- let followList = new Promise((r) => r([]));
- if (user)
- followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch(
- () => [],
- );
+ const { follows, followers } = await get(`/${subject.pubkey}/count`);
+ let followList = new Promise((r) => r([]));
+ if (user)
+ followList = get(`/${user.pubkey}/follows?pubkeysOnly=true`).catch(
+ () => [],
+ );
- return { follows, followers, followList };
+ return { follows, followers, followList };
}